package com.springboot.tools.page.model;

public class Sub extends Parent {
    private String name;
    private double weight;
    public Sub(String name, double weight) {
        super();
        this.name = name;
        this.weight = weight;
    }
    public String getDesc(){
        return "Sub[name="+name+", weight="+weight+"]";
    }
    public static void main(String[] args) {
        System.out.println(new Sub("tom", 2.0));
    }
}